package T6_23;

public class flower {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 100; i < 1000; i++) {
            int ge = i % 10;
            int ten = i / 10 % 10;
            int bai = i / 100;
            if (ge * ge * ge + ten * ten * ten + bai * bai * bai == i) {
                count++;
                System.out.println(i+"是水仙花数:");
            }
        }
        System.out.println("水仙花数:" + count);
    }
}
